import { PrimaryGeneratedColumn, Column, Entity, BaseEntity } from "typeorm";
@Entity('user')
export class User extends BaseEntity{
  @PrimaryGeneratedColumn()
  id: number; // 自增id

  @Column({type: 'varchar', name: 'name'})
  name: string;

  @Column('varchar')
  phone: string;

  @Column('datetime')
  create_time: string;
}
